#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int gcd(int a, int b) 
{
    if (b == 0)
    {
        return a;
    }
    else 
    {
        return gcd(b, a % b);
    }
}

int main() {
    int num1, num2;
    printf("Enter two numbers: ");
    scanf("%d %d", &num1, &num2);
    int result = gcd(num1, num2);
    printf("The greatest common divisor of %d and %d is: %d\n", num1, num2, result);

    return 0;
}